package com.wmlive.hhvideo.heihei.beans.bell;

/**
 * 铃铛消息类型
 * Created by vhawk on 2017/7/5.
 */
public enum MessageType {

    MESSAGE_TYPE_FOLLOW("follow"),//关注
    MESSAGE_TYPE_LIKE("like"),//点赞
    MESSAGE_TYPE_COMMENT("comment"),//评论或回复
    MESSAGE_TYPE_SYSTEM("system");//系统消息

    private String type;

    MessageType(String type) {
        this.type = type;
    }

    public static MessageType getMessageTypeByType(String type) {
        MessageType target = null;
        for (MessageType messageType : MessageType.values()) {
            if (messageType.type.equalsIgnoreCase(type)) {
                target = messageType;
            }
        }
        return target;
    }
}
